<%-- 
    Document   : PaginaTurma
    Created on : 03/12/2013, 10:06:44
    Author     : Edmilson
--%>

<%@page import="br.edu.ifrn.Classes.Turma"%>
<%@page import="br.edu.ifrn.Classes.Cota"%>
<%@page import="java.util.ArrayList"%>
<%@page import="br.edu.ifrn.Classes.Cota"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="cotas" scope="session" type="java.util.List" beanName="cota"></jsp:useBean>
    <!DOCTYPE html>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link rel="stylesheet" href="css/main.css" type="text/css" media="screen, projection, tv" />
            <link rel="stylesheet" href="css/responsive.css" type="text/css" media="print" />
            <title>Cadastro de Cotas</title>
        </head>
        <body>
        <%@include file="../Paginas/cabecalho.jsp" %>
        <!-- main content section -->
        <div class="main">
            <!-- left column -->
            <div class="left">

                <!-- block element -->
                <div class="block">
                    <h3 class="head">Header</h3>
                    <div>
                        <!-- InstanceBeginEditable name="EditRegion2" -->
                    <table>
                        <tr>
                            <th>Cotas</th>
                        </tr>
                        <%
                            for (Cota cota : (ArrayList<Cota>) cotas) {
                        %>
                        <tr>
                            <td><%= cota.getNome()%></td>
                            <td><a href="GerenciarCotas?acao=RemoverCotas&idCota=<%=cota.getIdCota()%>"> Excluir </a></td>
                            <td><a href="Adm/EditaCotas.jsp?acao=EditarCotas&nome=<%=cota.getNome()%>&idCota=<%=cota.getIdCota()%>&quantidadeFolhas=<%=cota.getQuantidadeFolhas()%>"> Editar </a></td>
                        </tr>
                        <%
                            }
                        %>
                    </table>
                    <form action="GerenciarCotas?acao=InserirCotas" method="post">
                        <fieldset title="Cadastro Cotas">
                        Nome : <input type="text" name="nome" /><br/>
                        Quantidade de folhas : <input type="text" name="quantidadeFolhas" /><br/>
                        <input type="submit" value="Cadastrar" />
                        </fieldset>
                    </form>
                    <!-- InstanceEndEditable -->
                    </div>
                    <h3 class="foot">Footer</h3>
                </div>

                <div class="block">
                    <h3 class="head head_a">Header A</h3>
                    <div>Some extra content</div>
                    <h3 class="foot foot_a">Footer A</h3>
                </div>

                <div class="block block_a">
                    <h3 class="head">Header</h3>
                    <div>Block A: Some extra content</div>
                    <h3 class="foot">Footer</h3>
                </div>
            </div>
        </div>
    <%@include file="../Paginas/rodape.jsp" %>
</body>
</html>
